import {} from './basicConfigIndexServ'
  // import { parse } from 'qs'
  import { message } from 'antd'
  // import moment from 'moment'
  import {isEmpty, isArray, cloneDeep, merge} from 'lodash'
  import $ from 'jquery';
  
  const defultState = {
      biz:{
        queryForm: {}
      },
  }
  
  const tmpModule = {
    state: cloneDeep(defultState),
    subscriptions: {
      setup ({dispatch, history}) {
        history.listen(({ pathname, query }) => {
          if('' + tmpModule.pathname === '' + pathname){
            dispatch({type: 'updateStore', payload: cloneDeep(defultState)})
          }
        })
      },
    },
  
  
    effects: {
    },
    // 存入状态机
    reducers: {
      updateStore(preState, action) {
        return Object.assign({}, preState, action.payload)
      },
    }
  }
  
  export default tmpModule
  